import { Entity, Column } from 'typeorm';
import { Base } from './base.entity';
import { ApiProperty } from '@nestjs/swagger';


@Entity({
  name: 'common',
})
export class CommonEntity extends Base {
  @Column()
  @ApiProperty({ title: 'content' })
  content: string;

  @ApiProperty({ title: '开否开启' })
  @Column({ type: Number, default: 0 })
  is_open_charge?: number;

  
  @ApiProperty({ title: '开始时间' })
  @Column({ type: String, default: '' })
  startTime: string;

  @ApiProperty({ title: '结束时间' })
  @Column({ type: String, default: '' })
  endTime: string;

  @ApiProperty({ title: '是否删除' })
  @Column({ type: Number, default: 0 })
  isDelete?: number;
}
